<template>
  <div>
    <div
      class="warn-box"
      v-if="activeTab!=3"
    >
      <svg-icon
        style="margin-right:17px"
        icon-class="warn"
        :size="20"
      />
      <p> 商品图片和文字描述不能存在手机号和任何二维码，不得存在微信字样。</p>
    </div>
    <template v-if="$route.name==='goodsBaseEdit'">
      <base-info :edit-id="goodsId"></base-info>
    </template>
    <template v-if="$route.name==='goodsMeal'">
      <meal-info :edit-id="mealId"></meal-info>
    </template>
  </div>
</template>

<script>
import baseInfo from "./child/base";
import mealInfo from "./child/meal";
export default {
  components: { baseInfo, mealInfo },
  props: ['goodsId', 'mealId'],
  data() {
    return {
    }
  },
  methods: {
  },
  mounted() {
    if (this.mealId) {
      // 编辑信息
      this.$route.meta.title = "编辑套餐";
    } else if (this.$route.name === 'goodsMeal') {
      // 添加信息
      this.$route.meta.title = "添加套餐";
    }
  }
}
</script>

<style lang="scss" scoped>
</style>
